<template>
  <router-view v-slot="{ Component }" v-if="$route.meta.keepAlive">
    <keep-alive>
      <component :is="Component" />
    </keep-alive>
  </router-view>
  <router-view v-if="!$route.meta.keepAlive" />
</template>

<script setup></script>
<style lang="less">
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #dbdbdb56;
  max-width: 100%;
  overflow-x: hidden;
}

.van-toast__text {
  font-size: 15px;
  line-height: 20px;
  padding: 5px;
  width: 200px;
}

@keyframes changeright {
  0% {
    -webkit-transform: rotate(0deg);
  }

  50% {
    -webkit-transform: rotate(180deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}
</style>
